#import <SenTestingKit/SenTestingKit.h>
#import <UIKit/UIKit.h>
#import "NSString+GTExtension.h"

@interface NSString_GTExtensionTest : SenTestCase {
}
@end

@implementation NSString_GTExtensionTest

- (void) testTrimWhitespaces {
  STAssertEqualObjects([@"piro piro" trimWhitespaces], @"piro piro", @"It should leave the string as is");
  STAssertEqualObjects([@"  piro piro  " trimWhitespaces], @"piro piro", @"It should trim the string");
}

- (void) testStart {
  STAssertTrue([@"abcd" startWith:@"ab"], @"It should find that 'abcd' starts with 'ab'");
  STAssertFalse([@"abcd" startWith:@"bc"], @"It should find that 'abcd' doesn't starts with 'bc'");
  STAssertFalse([@"abcd" startWith:@"ef"], @"It should find that 'abcd' doesn't starts with 'ef'");
}
@end
